#include<stdio.h>
int main()
{
	int m = 0;
	scanf("%d",&m);
	int a= m/16;
	int b = m%16;
	printf("%d",a*10+b);
	return 0;
}
